package cn.vcjf.weapp.api.user.service;

import cn.vcjf.weapp.api.user.entity.User;
import cn.vcjf.weapp.common.web.TableResult;
import com.baomidou.mybatisplus.plugins.Page;
import com.baomidou.mybatisplus.service.IService;
import org.springframework.transaction.annotation.Transactional;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author zhengzihang
 * @since 2018-09-25
 */
public interface UserService extends IService<User> {

	User getUserByOpenId(String openId,Integer sysUserId);

	@Transactional(readOnly = false)
	TableResult getTokenByOpenId(String openId, User userInfo);

	Page<User> findUserMessageList(Page<User> page, User user);

	String getOpenIdByUserId(Integer userId);
}
